<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../../../print.css" type="text/css" media="print">
<meta content="Box,com.paulcoyle.lhasa.types.Box,bottom,horizontal,left,right,top,vertical,all" name="keywords">
<title>com.paulcoyle.lhasa.types.Box</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'Box - LHASA : Layout Handler for ActionScript Applications';
				var baseRef = '../../../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">LHASA : Layout Handler for ActionScript Applications</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../../all-classes.html')" href="../../../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../../all-classes.html')" href="../../../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../../index-list.html')" href="../../../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../../../index.html?com/paulcoyle/lhasa/types/Box.html&amp;com/paulcoyle/lhasa/types/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;Box</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#methodSummary">Methods</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class Box"); titleBar_setSubNav(false,true,false,false,false,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">com.paulcoyle.lhasa.types</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class Box</td>
</tr>
<tr>
<td class="classHeaderTableLabel">Inheritance</td><td class="inheritanceList">Box <img class="inheritArrow" alt="Inheritance" title="Inheritance" src="../../../../images/inherit-arrow.gif"> flash.events.EventDispatcher</td>
</tr>
</table>
<p></p>
 Describes the values for the four sides of an element.  Used for defining
 the <code>margin</code> and <code>padding</code> properties of
 LayoutElements.
  <p></p>
<p>
<span class="classHeaderTableLabel">See also</span>
</p>
<div class="seeAlso">
<a href="../../lhasa/LayoutElement.html#margin" target="">LayoutElement.margin</a>
<br>
<a href="../../lhasa/LayoutElement.html#padding" target="">LayoutElement.padding</a>
</div>
<br>
<hr>
</div>
<a name="propertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Properties</div>
<table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#all">all</a> : Number<div class="summaryTableDescription">[write-only]
  Sets all properties (<code>top</code>, <code>right</code>,
  <code>bottom</code> and <code>left</code>) to the supplied value.</div>
</td><td class="summaryTableOwnerCol">Box</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#bottom">bottom</a> : Number<div class="summaryTableDescription">
  The value for the bottom of the box.</div>
</td><td class="summaryTableOwnerCol">Box</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#horizontal">horizontal</a> : Number<div class="summaryTableDescription">
  The sum of the <code>right</code> and <code>left</code> values.</div>
</td><td class="summaryTableOwnerCol">Box</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#left">left</a> : Number<div class="summaryTableDescription">
  The value for the left side of the box.</div>
</td><td class="summaryTableOwnerCol">Box</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#right">right</a> : Number<div class="summaryTableDescription">
  The value for the right side of the box.</div>
</td><td class="summaryTableOwnerCol">Box</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#top">top</a> : Number<div class="summaryTableDescription">
  The value for the top of the box.</div>
</td><td class="summaryTableOwnerCol">Box</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#vertical">vertical</a> : Number<div class="summaryTableDescription">
  The sum of the <code>top</code> and <code>bottom</code> values.</div>
</td><td class="summaryTableOwnerCol">Box</td>
</tr>
</table>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#Box()">Box</a>(top:Number = 0, right:Number = 0, bottom:Number = 0, left:Number = 0)</div>
<div class="summaryTableDescription">
  Creates a new Box.</div>
</td><td class="summaryTableOwnerCol">Box</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="propertyDetail"></a>
<div class="detailSectionHeader">Property detail</div>
<a name="all"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">all</td><td class="detailHeaderType">property</td>
</tr>
</table>
<div class="detailBody">
<code>all:Number</code>&nbsp;&nbsp;[write-only]<p>
  Sets all properties (<code>top</code>, <code>right</code>,
  <code>bottom</code> and <code>left</code>) to the supplied value.
  </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set all(value:Number):void</code>
<br>
</div>
<a name="bottom"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">bottom</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>bottom:Number</code>&nbsp;&nbsp;[read-write]<p>
  The value for the bottom of the box.
  </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get bottom():Number</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set bottom(value:Number):void</code>
<br>
</div>
<a name="horizontal"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">horizontal</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>horizontal:Number</code>&nbsp;&nbsp;[read-write]<p>
  The sum of the <code>right</code> and <code>left</code> values.  Setting
  this property applies the given value to both <code>right</code> and
  <code>left</code> equally.
  
  </p><p><span class="label">Example</span>
  <pre>
  var box:Box = new Box(1, 2, 3, 4);
  trace(box.right, box.left, box.horizontal);// (2 4 6)
  
  box.horizontal = 10;
  trace(box.right, box.left, box.horizontal);// (10 10 20)
  </pre>
  </p>
  
  <span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get horizontal():Number</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set horizontal(value:Number):void</code>
<br>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../types/Box.html#right" target="">right</a>
<br>
<a href="../types/Box.html#left" target="">left</a>
</div>
</div>
<a name="left"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">left</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>left:Number</code>&nbsp;&nbsp;[read-write]<p>
  The value for the left side of the box.
  </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get left():Number</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set left(value:Number):void</code>
<br>
</div>
<a name="right"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">right</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>right:Number</code>&nbsp;&nbsp;[read-write]<p>
  The value for the right side of the box.
  </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get right():Number</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set right(value:Number):void</code>
<br>
</div>
<a name="top"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">top</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>top:Number</code>&nbsp;&nbsp;[read-write]<p>
  The value for the top of the box.
  </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get top():Number</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set top(value:Number):void</code>
<br>
</div>
<a name="vertical"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">vertical</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>vertical:Number</code>&nbsp;&nbsp;[read-write]<p>
  The sum of the <code>top</code> and <code>bottom</code> values.  Setting
  this property applies the given value to both <code>top</code> and
  <code>bottom</code> equally.
  
  </p><p><span class="label">Example</span>
  <pre>
  var box:Box = new Box(1, 2, 3, 4);
  trace(box.top, box.bottom, box.vertical);// (1 3 4)
  
  box.vertical = 10;
  trace(box.top, box.bottom, box.vertical);// (10 10 20)
  </pre>
  </p>
  
  <span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get vertical():Number</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set vertical(value:Number):void</code>
<br>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../types/Box.html#top" target="">top</a>
<br>
<a href="../types/Box.html#bottom" target="">bottom</a>
</div>
</div>
<a name="constructorDetail"></a>
<div class="detailSectionHeader">Constructor detail</div>
<a name="Box()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">Box</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">constructor</td>
</tr>
</table>
<div class="detailBody">
<code>public function Box(top:Number = 0, right:Number = 0, bottom:Number = 0, left:Number = 0)</code><p>
  Creates a new Box.
  
  </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">top</span>:Number</code> (default = <code>0</code>)<code></code> &mdash; The value for the top of the box.
  </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">right</span>:Number</code> (default = <code>0</code>)<code></code> &mdash; The value for the right side of the box.
  </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">bottom</span>:Number</code> (default = <code>0</code>)<code></code> &mdash; The value for the bottom of the box.
  </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">left</span>:Number</code> (default = <code>0</code>)<code></code> &mdash; The value for the left side of the box.
  </td>
</tr>
</table>
</div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright"> 
</center>
</div>
</body>
</html>
<!-- -->
